package sk.fei.vrml.objects;

import sk.fei.vrml.main.Constants;


/**
 * VrmlShape represents shape type in VRML. It has 2 properties - geometry and appereance.
 * 
 * @author anubis
 * 
 */
public class VrmlShape extends VrmlObject {
	
	VrmlObject geometry;
	VrmlAppearance appearance;

	public VrmlShape() {
		this.type = Constants.Shape;
	}
	
	public VrmlShape(VrmlObject geometry, VrmlAppearance appearance) {
		this.geometry = geometry;
		this.appearance = appearance;
		this.type = Constants.Shape;
	}
	
	public VrmlObject getGeometry() {
		return geometry;
	}
	
	public void setGeometry(VrmlObject geometry) {
		this.geometry = geometry;
	}
	
	public VrmlAppearance getAppearence() {
		return appearance;
	}
	
	public void setAppearence(VrmlAppearance appearence) {
		this.appearance = appearence;
	}
	
	public String toString() {
		return this.getName();
	}
}

